﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace StudentMgmt.Model
{
    [Serializable]
    [Table(Name = "Classes")]
    public class ClassInfo
    {
        public ClassInfo() { }

        public ClassInfo(string class_id, string class_name, string class_monitor, string department_id)
        {
            this.ClassId = class_id;
            this.ClassName = class_name;
            this.ClassMonitor = class_monitor;
            this.DepartmentId = department_id;
        }

        [Column(Name = "Class_Id", IsPrimaryKey = true, DbType = "varchar(6)")]
        public string ClassId { get; set; }

        [Column(Name = "Class_Name", DbType = "varchar(50)")]
        public string ClassName { get; set; }

        [Column(Name = "Class_Monitor", DbType = "varchar(6)")]
        public string ClassMonitor { get; set; }

        [Column(Name = "Department_Id", DbType = "varchar(3)")]
        public string DepartmentId { get; set; }
    }
}
